package com.metro.outsourced.filemng.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.metro.outsourced.filemng.vo.FileRecordVO;
import com.metro.outsourced.filemng.entity.FileRecordEntity;
import com.metro.outsourced.filemng.mapper.FileRecordMapper;
import com.metro.outsourced.filemng.service.FileRecordService;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class FileRecordServiceImpl extends ServiceImpl<FileRecordMapper, FileRecordEntity> implements FileRecordService {


    @Override
    public FileRecordVO getInfo(String objId){
        return baseMapper.getInfo(objId);
    }

    @Override
    public void delFile(String objId){
         baseMapper.delFile(new Date(),objId);
    }
}
